package name.marz.to.go.ahg.SMBCVisa.executer;

import java.net.URI;
import java.util.ArrayList;
import java.util.List;

import name.marz.to.go.ahg.core.AutoGetterHttpClient;
import name.marz.to.go.ahg.core.checker.DocumentChecker;
import name.marz.to.go.ahg.core.executer.AbstractLoginExecuter;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class SMBCVisaLoginExecuter extends AbstractLoginExecuter {
	DocumentChecker checker = new SMBCVisaLoginChecker();

	public SMBCVisaLoginExecuter(URI uri, AutoGetterHttpClient client) {
		super(uri, client);
	}

	public SMBCVisaLoginExecuter(URI uri, AutoGetterHttpClient client,
			String[] userIds, String pass) {
		super(uri, client, userIds, pass);
	}

	@Override
	protected List<NameValuePair> getRequestParameters() {
		List<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair("userid",super.userIdentifiers[0]));
		params.add(new BasicNameValuePair("password",super.userPass));
		params.add(new BasicNameValuePair("login01",""));
		return params;
	}

	@Override
	protected DocumentChecker getChecker() {
		return checker;
	}
}